package com.qidian.mes.pojo;

import java.util.Date;


public class CalShift {//计划班次
    private Long shiftId;
    private Long planId;
    private Integer orderNum;
    private String shiftName;
    private String startTime;
    private String endTime;
    private String remark;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    private Long createTimeMillis;
    private Long modifyTimeMillis;

    public CalShift() {
    }

    public CalShift(Long shiftId, Long planId, Integer orderNum, String shiftName, String startTime, String endTime, String remark, String createBy, Date createTime, String updateBy, Date updateTime, Long createTimeMillis, Long modifyTimeMillis) {
        this.shiftId = shiftId;
        this.planId = planId;
        this.orderNum = orderNum;
        this.shiftName = shiftName;
        this.startTime = startTime;
        this.endTime = endTime;
        this.remark = remark;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.createTimeMillis = createTimeMillis;
        this.modifyTimeMillis = modifyTimeMillis;
    }

    /**
     * 获取
     * @return shiftId
     */
    public Long getShiftId() {
        return shiftId;
    }

    /**
     * 设置
     * @param shiftId
     */
    public void setShiftId(Long shiftId) {
        this.shiftId = shiftId;
    }

    /**
     * 获取
     * @return planId
     */
    public Long getPlanId() {
        return planId;
    }

    /**
     * 设置
     * @param planId
     */
    public void setPlanId(Long planId) {
        this.planId = planId;
    }

    /**
     * 获取
     * @return orderNum
     */
    public Integer getOrderNum() {
        return orderNum;
    }

    /**
     * 设置
     * @param orderNum
     */
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    /**
     * 获取
     * @return shiftName
     */
    public String getShiftName() {
        return shiftName;
    }

    /**
     * 设置
     * @param shiftName
     */
    public void setShiftName(String shiftName) {
        this.shiftName = shiftName;
    }

    /**
     * 获取
     * @return startTime
     */
    public String getStartTime() {
        return startTime;
    }

    /**
     * 设置
     * @param startTime
     */
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /**
     * 获取
     * @return endTime
     */
    public String getEndTime() {
        return endTime;
    }

    /**
     * 设置
     * @param endTime
     */
    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    /**
     * 获取
     * @return remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置
     * @param remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取
     * @return createBy
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 设置
     * @param createBy
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateBy
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * 设置
     * @param updateBy
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getCreateTimeMillis() {
        if(this.createTime != null) {
            return this.createTime.getTime();
        }
        return null;
    }

    /**
     * 设置
     * @param createTimeMillis
     */
    public void setCreateTimeMillis(Long createTimeMillis) {
        this.createTimeMillis = createTimeMillis;
    }

    /**
     * 获取
     * @return modifyTimeMillis
     */
    public Long getModifyTimeMillis() {
        if(this.updateTime != null) {
            return this.updateTime.getTime();
        }
        return null;
    }

    /**
     * 设置
     * @param modifyTimeMillis
     */
    public void setModifyTimeMillis(Long modifyTimeMillis) {
        this.modifyTimeMillis = modifyTimeMillis;
    }

    public String toString() {
        return "CalShift{shiftId = " + shiftId + ", planId = " + planId + ", orderNum = " + orderNum + ", shiftName = " + shiftName + ", startTime = " + startTime + ", endTime = " + endTime + ", remark = " + remark + ", createBy = " + createBy + ", createTime = " + createTime + ", updateBy = " + updateBy + ", updateTime = " + updateTime + ", createTimeMillis = " + createTimeMillis + ", modifyTimeMillis = " + modifyTimeMillis + "}";
    }
}
